package com.xiaoshuidi.cloud.module.system.controller.admin.permission.vo.role;

import com.alibaba.excel.annotation.ExcelProperty;
import com.xiaoshuidi.cloud.framework.excel.core.annotations.DictFormat;
import com.xiaoshuidi.cloud.framework.excel.core.convert.DictConvert;
import com.xiaoshuidi.cloud.module.system.enums.DictTypeConstants;
import lombok.Data;

/**
 * 角色 Excel 导出响应 VO
 */
@Data
public class RoleExcelVO {

    @ExcelProperty("角色编号")
    private Long id;

    @ExcelProperty("角色名称")
    private String name;

    @ExcelProperty("角色标识")
    private String code;

    @ExcelProperty("显示顺序")
    private Integer sort;

    @ExcelProperty(value = "数据权限", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.DATA_SCOPE)
    private Integer dataScope;

    @ExcelProperty(value = "角色状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private String status;

}
